import request from '@/utils/request'

export function fetchBuildingList(query) {
  return request({
    url: '/building/queryBuildingList',
    method: 'get',
    params: query
  })
}

export function addBuilding(data) {
  return request({
    url: '/building/addBuilding',
    method: 'post',
    data
  })
}

export function updateBuilding(data) {
  return request({
    url: '/building/updateBuilding',
    method: 'post',
    data
  })
}

export function deleteBuilding(id) {
  return request({
    url: '/building/delete/' + id,
    method: 'delete'
  })
}

export function getBuildingItem() {
  return request({
    url: '/building/getBuildingItem',
    method: 'post'
  })
}

